Skip to content

PORTAL-4741: test & upgrade python sdk#95

Merged
skumar-05 merged 9 commits intomasterfrom
PORTAL-4741_sdk_upgrade
May 9, 2025
Merged

PORTAL-4741: test & upgrade python sdk#95
skumar-05 merged 9 commits intomasterfrom
PORTAL-4741_sdk_upgrade

Conversation

@skumar-05
Copy link
Copy Markdown
Contributor

@skumar-05 skumar-05 commented May 7, 2025

This pull request introduces several updates to the OneLogin API client and a new script for interacting with the OneLogin API. The changes include adding a new script for managing apps via the API, and replacing @validate_arguments with @validate_call in multiple API methods to align with updated Pydantic validation practices.

New Script for OneLogin API Interaction:

  • app_script.py: Added a new script to interact with the OneLogin API for managing apps. It includes functionality for generating access tokens, listing apps, retrieving app details, updating app visibility, and fetching app users.

Validation Update in API Methods:

These updates enhance the usability of the OneLogin API client and ensure compatibility with the latest validation standards.

@Subterrane Subterrane changed the title Portal 4741: test & upgrade python sdk PORTAL-4741: test & upgrade python sdk May 8, 2025
@Subterrane Subterrane requested a review from Copilot May 8, 2025 18:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the Python SDK for the OneLogin API by replacing the outdated @validate_arguments decorator with the new @validate_call decorator in many API modules, and it adds a new app_script.py to interact with the API (for generating tokens, listing apps, retrieving and updating apps).

  • Updated validation decorators across multiple API modules to maintain compatibility with the latest Pydantic practices.
  • Added a new script (app_script.py) for managing apps via the API.

Reviewed Changes

Copilot reviewed 185 out of 185 changed files in this pull request and generated no comments.

Show a summary per file
File Description
onelogin/api/smart_hooks_api.py Replaced @validate_arguments with @validate_call
onelogin/api/saml_assertions_api.py Replaced validation decorator as above
onelogin/api/roles_api.py Replaced validation decorator
onelogin/api/privileges_api.py Replaced validation decorator
onelogin/api/o_auth2_api.py Replaced validation decorator
onelogin/api/multi_factor_authentication_v1_api.py Replaced validation decorator
onelogin/api/multi_factor_authentication_api.py Replaced validation decorator
onelogin/api/invite_links_api.py Replaced validation decorator
onelogin/api/groups_api.py Replaced validation decorator
onelogin/api/events_api.py Replaced validation decorator
onelogin/api/branding_service_templates_api.py Replaced validation decorator
onelogin/api/branding_service_smtp_api.py Replaced validation decorator
onelogin/api/branding_service_api.py Replaced validation decorator
onelogin/api/apps_api.py Replaced validation decorator
onelogin/api/api_authorization_server_api.py Replaced validation decorator
onelogin/api/api_auth_scopes_api.py Replaced validation decorator
onelogin/api/api_auth_client_apps_api.py Replaced validation decorator
onelogin/api/api_auth_claims_api.py Replaced validation decorator
app_script.py Added new script for OneLogin API interaction

@Subterrane
Copy link
Copy Markdown
Contributor

Example test: #96

@skumar-05 skumar-05 merged commit aff1341 into master May 9, 2025
6 checks passed
@Subterrane Subterrane deleted the PORTAL-4741_sdk_upgrade branch May 9, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants